package com.xuliugen.lsm.core;

import com.xuliugen.lsm.tree.BTree;

public class SSTable<K extends Comparable<K>, V> {

    private BTree<K, V> bTree;

    public SSTable(int m) {
        bTree = new BTree<>(m);
    }

    public boolean delete(K key) {
        return bTree.delete(key);
    }

    public boolean put(K key, V value) {
        return bTree.insert(key, value);
    }

    public BTree<K, V> getBTree() {
        return bTree;
    }

    public int getM() {
        return bTree.getM();
    }

    public V get(K key) {
        return bTree.get(key);
    }
}
